package com.googlecode.boliang.q12;

public class BTree {

	private int nodeValue; 
	private BTree leftChild; 
	private BTree rightChild; 
	
	public BTree(int nodeValue, BTree leftChild, BTree rightChild) {
		this.nodeValue = nodeValue; 
		this.leftChild = leftChild; 
		this.rightChild = rightChild; 
	}

	public int getNodeValue() {
		return nodeValue;
	}

	public void setNodeValue(int nodeValue) {
		this.nodeValue = nodeValue;
	}

	public BTree getLeftChild() {
		return leftChild;
	}

	public void setLeftChild(BTree leftChild) {
		this.leftChild = leftChild;
	}

	public BTree getRightChild() {
		return rightChild;
	}

	public void setRightChild(BTree rightChild) {
		this.rightChild = rightChild;
	}
	
}
